<template>
  <div>
    <span>剩余{{ sNumber }}</span>
    <button @click="toSelect('all')">全部</button>
    <button @click="toSelect('no')">未完成</button>
    <button @click="toSelect('yes')">已完成</button>
    <button @click="toClear">清除已完成</button>
  </div>
</template>

<script>
export default {
    props:['sNumber'],
    methods:{
        toClear(){
            this.$emit('toClear')
        },
        toSelect(code){
            this.$emit('getCode',code)
        },
    }
}
</script>

<style>

</style>